#import "Rectangle.h"
#import "XYPoint.h"

// Main
int main (int argc, const char * argv[]) {
	NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
	Rectangle *myRect = [[Rectangle alloc] init];
	XYPoint *myPoint1 = [[XYPoint alloc] init];
	
	[myPoint1 setX: 100 andY: 200];
	[myRect setWidth: 5 andHeight: 8];
	myRect.origin = myPoint1;
	NSLog (@"Origin at (%i, %i)",
		   myRect.origin.x, myRect.origin.y);
	[myPoint1 setX: 50 andY: 50];
	NSLog (@"Origin at (%i, %i)",
		   myRect.origin.x, myRect.origin.y);

	[myRect release];
	[myPoint1 release];
	[pool drain];
	return 0;
}
